package com.Stream.A01StreamLiu;

import java.util.ArrayList;
import java.util.Collections;
import java.util.stream.Stream;

public class A02_Strasm {
    public static void main(String[] args) {
        // 1.散列结合获取stream流
        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list, "a", "b", "c", "d", "e", "f");
        // 获取一条流水线 并把集合上的数据放到流水线上
        // Stream<String> stream1 = list.stream();
        // stream1.forEach(s-> System.out.println(s));
        list.stream().forEach(s-> System.out.println(s));
    }
}
